xenpaging: optimize p2m_mem_paging_populate
authorKeir Fraser <keir@xen.org>
Fri, 26 Nov 2010 14:22:11 +0000 (14:22 +0000)
committerKeir Fraser <keir@xen.org>
Fri, 26 Nov 2010 14:22:11 +0000 (14:22 +0000)
commit0d16f75ded6be36f19c71a9aed64efdaf450579e
treea0cef08e7d32831312612e6260d167a98d552336
parent55121cdb79403ef434712b6b09eab105e1bca897
xenpaging: optimize p2m_mem_paging_populate

p2m_mem_paging_populate will always put another request in the ring.
To reduce pressure on the ring, place only required requests in the
ring.  If the gfn was already processed by another thread, and the
current vcpu does not need to be paused, p2m_mem_paging_resume will do
nothing with the request.  And also xenpaging will drop the request if
the vcpu does not need a wakeup.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
xen/arch/x86/mm/p2m.c